<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>中国定制游_中国自由行路线推荐-第六感私享小团</title>
    <link rel="icon" href="image/public/Logo.ico">
    <link rel="stylesheet" href="css/head.css">
    <link rel="stylesheet" href="css/public.css">
    <link rel="stylesheet" href="css/search.css">
    <link rel="stylesheet" href="css/bottom.css">
    <link rel="stylesheet" href="element/index.css">
    <script src="js/api.js"></script>
    <script src="jquery/jquery-3.6.0.js"></script>
    <script src="js/iconfont.js"></script>
    <script src="vue/vue.min.js"></script>
    <script src="element/index.js"></script>
    <script src="axios/axios.min.js"></script>

    <style>
        .BMap_omCtrl,
        .BMap_stdMpCtrl,
        .anchorBL {
            display: none;
        }
    </style>

</head>

<body>
    <div id="app">
        <!-- 最大的盒子 -->
        <div class="head_max">
            <!-- 小的盒子 -->
            <div class="head_min">
                <!-- 头部logo -->
                <div class="head_logo"></div>
                <!-- 导航条 -->
                <div class="navigation_bars">
                    <div class="nav_top">
                        <ul class="ul1">
                            <li> <a href="#">登录</a> <span>|</span> </li>
                            <li> <a href="#">注册送</a><span style="color:#ff8000;font-style: oblique;">900</span>
                                <span>|</span>
                            </li>
                            <li class="ul2-li li">
                                <a href="#" class="a_text_all">Language</a>
                                <svg class="icon" aria-hidden="true">
                                    <use xlink:href="#icon-daosanjiao"></use>
                                </svg>
                                <span>|</span>
                            </li>
                            <li class="li ul3-li">
                                <a href="#">CNY</a>
                                <svg class="icon" aria-hidden="true" style="margin-top: 4px;">
                                    <use xlink:href="#icon-daosanjiao"></use>
                                </svg>
                                <span>|</span>
                            </li>
                            <li> <a href="#">常见问题</a> <span>|</span> </li>
                            <li class="ul4-li">
                                <img src="image/head/phone2.svg" width="13">
                                <a href="#">APP客户端</a>
                                <span>|</span>
                            </li>
                            <li>
                                <img src="image/head/phone.svg" width="15">
                                <a href="#" style="color:#ff8000; font-style: oblique;font-size: 14px;">400-9600-080</a>
                            </li>

                        </ul>
                        <!-- 二级菜单 -->
                        <ul class="ul2">
                            <li><a href="#">English</a></li>
                            <li><a href="#">繁體中文</a></li>
                            <li><a href="#">简体中文</a></li>
                            <li style="border: 0;"><a href="#">日本语</a></li>
                        </ul>
                        <ul class="ul3">
                            <li><a href="#">CNY</a></li>
                            <li><a href="#">USD</a></li>
                            <li><a href="#">HKD</a></li>
                            <li style="border: 0;"><a href="#">JPY</a></li>
                        </ul>
                        <div class="ul4">
                            <div class="download-1">APP预订，即时简单快捷</div>
                            <div class="img"></div>
                        </div>
                    </div>
                    <div class="nav_bottom">
                        <ul>
                            <li> <a href="index.html">首页</a></li>
                            <li class="li">
                                <a href="#">别墅公寓</a>
                                <svg class="icon" aria-hidden="true" style="margin-top: 6px; font-size: 12px;">
                                    <use xlink:href="#icon-daosanjiao"></use>
                                </svg>
                            </li>
                            <li> <a href="hotel.html">甄选酒店</a></li>
                            <div class="new"></div>
                            <li> <a href="private.html">私享小团</a></li>
                            <li> <a href="preferential.html">限时优惠</a></li>
                            <li> <a href="single.html">晒单</a></li>
                            <li> <a href="vacation_tips.html">度假攻略</a></li>
                            <li> <a href="vvip.html">VVIP</a></li>

                        </ul>
                    </div>
                </div>
            </div>
        </div>
        <div class="body">
            <div class="search_box" id="flightInfoBox">
                <div class="search_item_box">
                    <i class="el-icon-location-outline"
                        style="color: rgb(255, 128, 0);position: absolute;margin-top: 6px;font-size: 25px;margin-left: 15px;"></i>
                    <input type="text" class="search_text_box" placeholder="目的地/别墅" v-model="name"
                        style="font-size: 16px;font-weight: 400;">
                    <template>
                        <div class="block" style="margin-right: 70px;">
                            <el-date-picker v-model="data" type="date" placeholder="入住日期">
                            </el-date-picker>
                        </div>
                    </template>
                    <i class="el-icon-user"
                        style="z-index: 99;color: rgb(255, 128, 0);position: absolute;margin-top: 7px;font-size: 23px;left: 697px;"></i>
                    <template>
                        <el-select style="margin-right: 20px;font-size: 16px;font-weight: 400;" v-model="people"
                            placeholder="入住人数">
                            <el-option v-for="item in options" :key="item.value" :label="item.label"
                                :value="item.value">
                            </el-option>
                        </el-select>
                    </template>
                    <button class="btn_search" @click="go_search">搜索</button>
                </div>
            </div>
            <div class="body-sort">
                <div class="body-sort-title" v-for="(fac,ind) in facility">
                    <p>
                        <a title="首页" href="./index.html">首页 </a> >
                        <a href="#" v-for="(tit,index) in titles">
                            <i>{{tit}}</i> <i v-if="index!=titles.length-1"> > </i>
                        </a>
                    </p>
                </div>
                <div class="b-center-s">
                    <div class="b-center-l">
                        <div class="l-map">
                            <div class="map-btn">进入地图模式</div>
                            <div style="width: 100%;height: 100%;">
                                <p style="font-family:'楷体';display: none;">
                                    <b>要查询的地址：</b><input id="text_" type="text"
                                        style="margin:0;padding:10px 0;border:1px solid rgb(180, 180, 180);border-radius:8px;width:250px;height:10px;font-size:16px;text-align:center;" />
                                    <input type="button" value="查询" onclick="searchByStationName();"
                                        style="width:85px;height:23px;border-color:#ccc;border-radius:25px;" />
                                </p>
                                <p style="font-family:'楷体';display: none;">查询结果(经纬度)：<input id="result_" type="text"
                                        style="border:0;" /></p>
                                <center>
                                    <div id="container"
                                        style="position: absolute;width:100%;height:100%;border: 1px solid gray;overflow:hidden;">
                                    </div>
                                </center>
                            </div>
                        </div>
                        <div class="l-filter">
                            <div class="btitle">高级筛选</div>
                            <div style="margin-top: 5px;">
                                <div class="filter open" id="price">
                                    价格 币种 (CNY)
                                </div>
                                <div class="filter-box repair-style" id="price-box">
                                    <a href="#">
                                        <span class="active" style="color: #fff;">不限</span>
                                    </a>
                                    <a href="#">
                                        <span>0 - 3,000</span>
                                    </a>
                                    <a href="#">
                                        <span>3,000 - 5,000</span>
                                    </a>
                                    <a href="#">
                                        <span>5,000 - 7,000</span>
                                    </a>
                                    <a href="#">
                                        <span>7,000 - 9,000</span>
                                    </a>
                                    <a href="#">
                                        <span>9,000 - 12,000</span>
                                    </a>
                                    <a href="#">
                                        <span>12,000 +</span>
                                    </a>
                                </div>
                            </div>
                            <div style="margin-top: 5px;">
                                <div class="filter open" id="bedroom">
                                    卧室
                                </div>
                                <div class="filter-box slider-box" id="bedroom-box" style="display: block;">
                                    <ul>
                                        <a href="#">
                                            <span class="active">不限</span>
                                        </a>
                                        <a href="#">
                                            <span>1</span>
                                        </a>
                                        <a href="#">
                                            <span>2</span>
                                        </a>
                                        <a href="#">
                                            <span>3</span>
                                        </a>
                                        <a href="#">
                                            <span>4</span>
                                        </a>
                                        <a href="#">
                                            <span>5</span>
                                        </a>
                                        <a href="#">
                                            <span>6</span>
                                        </a>
                                        <a href="#">
                                            <span>7+</span>
                                        </a>
                                    </ul>
                                </div>
                            </div>
                            <div style="margin-top: 5px;">
                                <div class="filter open" id="area">
                                    地区
                                </div>
                                <div class="filter-box" id="area-box" style="display: block;">
                                    <span>
                                        <a href="#">上海</a>
                                    </span>
                                    <span>
                                        <a href="#">北京</a>
                                    </span>
                                    <span>
                                        <a href="#">浙江</a>
                                    </span>
                                    <span>
                                        <a href="#">江苏</a>
                                    </span>
                                    <span>
                                        <a href="#">四川</a>
                                    </span>
                                    <span>
                                        <a href="#">云南</a>
                                    </span>
                                    <span>
                                        <a href="#">海南</a>
                                    </span>
                                    <span>
                                        <a href="#">福建</a>
                                    </span>
                                    <span>
                                        <a href="#">安徽</a>
                                    </span>
                                    <span>
                                        <a href="#">江西</a>
                                    </span>
                                    <span>
                                        <a href="#">山东</a>
                                    </span>
                                    <span>
                                        <a href="#">广东</a>
                                    </span>
                                    <span>
                                        <a href="#">河南</a>
                                    </span>
                                    <span>
                                        <a href="#">湖北</a>
                                    </span>
                                    <span>
                                        <a href="#">湖南</a>
                                    </span>
                                    <span>
                                        <a href="#">广西</a>
                                    </span>
                                    <span>
                                        <a href="#">甘肃</a>
                                    </span>
                                    <span>
                                        <a href="#">青海</a>
                                    </span>
                                    <span>
                                        <a href="#">新疆</a>
                                    </span>
                                    <span>
                                        <a href="#">贵州</a>
                                    </span>
                                    <span>
                                        <a href="#">河北</a>
                                    </span>
                                    <span>
                                        <a href="#">内蒙古</a>
                                    </span>
                                    <span>
                                        <a href="#">辽宁</a>
                                    </span>
                                    <span>
                                        <a href="#">吉林</a>
                                    </span>
                                    <span>
                                        <a href="#">黑龙江</a>
                                    </span>
                                    <span>
                                        <a href="#">陕西</a>
                                    </span>
                                    <span>
                                        <a href="#">宁夏</a>
                                    </span>
                                    <span>
                                        <a href="#">山西</a>
                                    </span>
                                </div>
                            </div>
                            <div style="margin-top: 5px;">
                                <div class="filter open" id="theme">
                                    景观/主题
                                </div>
                                <div class="filter-box repair-address-style" id="theme-box" style="display: block;">
                                    <span class="active">
                                        <a href="#" style="color: #fff;">不限</a>
                                    </span>
                                    <span>
                                        <a href="#">海滩</a>
                                    </span>
                                    <span>
                                        <a href="#">悬崖景观</a>
                                    </span>
                                    <span>
                                        <a href="#">海景</a>
                                    </span>
                                    <span>
                                        <a href="#">峡谷景</a>
                                    </span>
                                    <span>
                                        <a href="#">城市景观</a>
                                    </span>
                                    <span>
                                        <a href="#">湖景</a>
                                    </span>
                                    <span>
                                        <a href="#">凡尔赛宫</a>
                                    </span>
                                    <span>
                                        <a href="#">河景</a>
                                    </span>
                                    <span>
                                        <a href="#">码头景观</a>
                                    </span>
                                    <span>
                                        <a href="#">自然</a>
                                    </span>
                                    <span>
                                        <a href="#">山景</a>
                                    </span>
                                    <span>
                                        <a href="#">高尔夫球场景观</a>
                                    </span>
                                    <span>
                                        <a href="#">雨林景观</a>
                                    </span>
                                    <span>
                                        <a href="#">沙漠景观</a>
                                    </span>
                                    <span>
                                        <a href="#">雪景</a>
                                    </span>
                                    <span>
                                        <a href="#">园景</a>
                                    </span>
                                    <span>
                                        <a href="#">艺术博物馆</a>
                                    </span>
                                    <span>
                                        <a href="#">日式庭院景观</a>
                                    </span>
                                    <span>
                                        <a href="#">度假</a>
                                    </span>
                                    <span>
                                        <a href="#">安缦</a>
                                    </span>
                                    <span>
                                        <a href="#">游艇</a>
                                    </span>
                                    <span>
                                        <a href="#">探险</a>
                                    </span>
                                    <span>
                                        <a href="#">滑雪</a>
                                    </span>
                                    <span>
                                        <a href="#">商务</a>
                                    </span>
                                    <span>
                                        <a href="#">婚礼</a>
                                    </span>
                                    <span>
                                        <a href="#">家庭</a>
                                    </span>
                                    <span>
                                        <a href="#">星野</a>
                                    </span>
                                    <span>
                                        <a href="#">温泉旅馆</a>
                                    </span>
                                    <span>
                                        <a href="#">购物</a>
                                    </span>
                                    <span>
                                        <a href="#">蜜月</a>
                                    </span>
                                    <span>
                                        <a href="#">亲子</a>
                                    </span>
                                    <span>
                                        <a href="#">朋友聚会</a>
                                    </span>
                                    <span>
                                        <a href="#">美食</a>
                                    </span>
                                    <span>
                                        <a href="#">明星名人入住</a>
                                    </span>
                                </div>
                            </div>
                        </div>
                        <div class="plane_ticked" style="margin-bottom: 15px; display: block;">
                            <p class="plane_ticked_first">第六感预订机票，
                                <span class="specil_text">省心实惠</span>
                            </p>
                            <p class="plane_ticked_sec">即刻订机票，全网优惠价
                                <a href="#">
                                    <div class="ask_me"><span style="color: #fff;">立刻咨询</span></div>
                                </a>
                            </p>
                            <img src="../image/search_img/planetTicket.png" alt="" class="planetTicket_img">
                        </div>
                        <div class="js-box">
                            <div style="overflow: hidden;padding-bottom: 10px;">
                                <div class="Lfll">最近浏览的别墅</div>
                                <div class="clear_all" style="cursor: pointer">清除</div>
                            </div>
                            <div class="browse-history">
                                <div class="browse-villa">
                                    <div class="Lfz16">暂无记录</div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="b-center-r">
                        <div class="search-result-hd">
                            <p class="re-text">
                                <em>亚洲 中国</em>
                                <b id="total">1-20，共338</b>条
                            </p>
                        </div>
                        <div class="house_type">
                            <div class="house_type_left">
                                <div class="house_type_detail_active">不限</div>
                                <div class="house_type_detail">别墅</div>
                                <div class="house_type_detail">公寓</div>
                                <div class="house_type_detail">酒店</div>
                                <div class="house_type_detail_checkbox"><label><input
                                            type="checkbox"><span>实时房态</span></label></div>
                                <div class="house_type_detail_checkbox"><label><input
                                            type="checkbox"><span>折扣优惠</span></label></div>
                            </div>
                            <div class="house_type_right">
                                <div id="sort0" class="default">推荐排序</div>
                                <div id="sort1" class="default">价格排序</div>
                                <div id="sort2" class="default">卧室排序</div>
                            </div>
                        </div>
                        <div class="items-list" @click="villainfo(s.villa_id)" v-for="(s,j) in searchVilla"
                            v-if="s.villa_state === '启用'">
                            <div class="items-list-img">
                                <a href="#">
                                    <!-- <img :src="'./image/home_page/popular_villa/koh/'+img" alt=""> -->
                                    <img :src=`./image/villa_img/${s.villa_introduce}` alt="">
                                </a>
                            </div>
                            <div class="msg-text">
                                <div class="firce">
                                    <a href="#" :title="s.villa_name">
                                        <div class="tit">{{ j+1 }}</div>
                                        <div class="tit-head">
                                            <h3>&nbsp;{{s.villa_name}}</h3>
                                        </div>
                                    </a>
                                    <div class="map-position" title="预订数" v-for="(villa_book,l) in villa_book"
                                        v-if="villa_book.villa_name==s.villa_name">&nbsp;&nbsp; {{
                                        villa_book.reserves[0].reserve_nub
                                        }}</div>
                                    <div class="consulting" v-for="(comments,l) in comment" title="评论数"
                                        v-if="comments.villa_name==s.villa_name">&nbsp;&nbsp; {{
                                        comments.comments.length }}</div>
                                    <div class="collection_gray" title="立即收藏"><img
                                            src="../image/search_img/collection_gray.png" alt=""></div>
                                </div>
                                <p class="address">
                                    <span>{{s.villa_place}}</span>
                                </p>
                                <div class="add-type">
                                    <p class="ms" v-if="landscape.vnorms[0].vnorms_type==='别墅景观'"
                                        v-for="(landscape,l) in landscape">
                                        {{ landscape.vnorms[0].vnorms_name}}
                                        <span> {{ l === landscape.vnorms[0].vnorms_type.length ? "" : "|" }} </span>
                                    </p>
                                </div>

                                <div class="icons">
                                    <div class="icons-ws">{{s.villa_baths}}</div>
                                    <div class="icons-ys">1</div>
                                </div>
                                <div class="serve-type" v-for="(facility,i) in facility">
                                    <p class="fw" v-if="facility.vsitems[i].vsitem_price<=0"
                                        v-for="(facilityes,i) in facility.vsitems">
                                        {{ facility.vsitems[i].vsitem_name}}
                                        <span> {{ i === facility.vsitems[i].vsitem_name.length ? "" : "|" }} </span>
                                    </p>
                                </div>
                                <div class="inner">
                                    <p class="price">
                                        <span>
                                            <a href="#" style="font-size: 18px;color: #ff8000;">￥<span
                                                    style="font-size: 23px;color:#ff8000">{{s.villa_price}}</span> 元</a>
                                        </span>
                                    </p>
                                    <a href="#" class="xq-btn">
                                        立刻预订
                                    </a>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>


            </div>
        </div>

        <div class="bottom">
            <div class="bottom_box">
                <div class="bottom_details">
                    <a href="">
                        <div class="img_Logo"></div>
                    </a>
                    <div class="bottom_text">
                        第六感-别墅公寓、奢华酒店、私人定制。我们推崇与众不同的度假理念，提供包括度假别墅、短租公寓和奢华酒店在内的多元化住宿选择，另有私人包机，行程定制，豪华游轮等预订服务。
                        第六感致力于满足您的个性化需求，为您提供专业的一站式度假服务。
                    </div>
                    <ul class="ul_css bottom_ul">
                        <li class="bottom_li">
                            <div class="bottom_ico_vx"></div>
                            <p class="bottom_p_css bottom_text">微信订阅号</p>
                        </li>
                        <li class="bottom_li">
                            <div class="bottom_ico_blog"></div>
                            <p class="bottom_p_css bottom_text">官方微博</p>
                        </li>
                        <li class="bottom_li">
                            <div class="bottom_ico_tmallx"></div>
                            <p class="bottom_p_css bottom_text">官方天猫</p>
                        </li>
                    </ul>
                </div>
                <div class="bottom_service">

                    <div class="service_box">
                        <div class="service_ico_box">
                            <div class="service_phone_ico">
                            </div>
                            <div class="service_text_box">
                                <span class="bottom_text service_text">400-9600-080</span>
                                <p class="bottom_text">7x24 小时在线服务</p>
                            </div>
                            <div class="service_message_ico"></div>
                            <div class="service_text_box">
                                <span class="bottom_text service_text">服务支持</span>
                                <p class="bottom_text">Rookie团队</p>
                            </div>
                        </div>
                        <div class="service_ico_box">
                            <div class="service_text_box">
                                <span class="bottom_text service_text">市场合作</span>
                                <p class="bottom_text">marketing@Rookie.com</p>
                            </div>
                            <div class="service_text_box">
                                <span class="bottom_text service_text">房源合作</span>
                                <p class="bottom_text">partnership@Rookie.com</p>
                            </div>
                        </div>
                        <ul class="ul_css" style="float:left;margin-top: 13px;">
                            <li class="service_li">
                                <a href="" class="a_text_all">
                                    <span style="color: #777">关于团队</span>
                                </a>
                            </li>
                            <li class="service_li">
                                <a href="" class="a_text_all">
                                    <span style="color: #777">常见问题</span>
                                </a>
                            </li>
                            <li class="service_li">
                                <a href="" class="a_text_all">
                                    <span style="color: #777">服务理念</span>
                                </a>
                            </li>
                            <li class="service_li">
                                <a href="" class="a_text_all">
                                    <span style="color: #777">网站地图</span>
                                </a>
                            </li>
                            <li class="service_li">
                                <a href="" class="a_text_all">
                                    <span style="color: #777">加入我们</span>
                                </a>
                            </li>
                            <li class="service_li">
                                <a href="" class="a_text_all">
                                    <span style="color: #777">同行注册</span>
                                </a>
                            </li>
                        </ul>
                        <div class="service_reserve_box">
                            <div class="reserve_img"></div>
                            <p class="bottom_text reserve_text">APP预订，即时简单快捷</p>
                        </div>
                    </div>
                </div>
            </div>
            <div class="business_license">
                <div class="bottom_box">
                    <div class="business_license_text">Copyright © 2013-2022 上海墅假网络科技有限公司 沪ICP备14011210号 营业执照</div>
                </div>
            </div>
        </div>
    </div>
    <script src="js/head.js"></script>
    <script>
        // 获取从url地址截取出来的id
        function getQueryString(name) { //传进想要获取的querystring的key
            var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
            var r = window.location.search.substr(1).match(reg);
            if (r != null) return decodeURIComponent(r[2]);
            return null;
        };
        // 将标准格式转化为想要的日期格式
        function formatTime(date, fmt) {
            var date = new Date(date);
            if (/(y+)/.test(fmt)) {
                fmt = fmt.replace(RegExp.$1, (date.getFullYear() + '').substr(4 - RegExp.$1.length));
            }
            var o = {
                'M+': date.getMonth() + 1,
                'd+': date.getDate(),
                'h+': date.getHours(),
                'm+': date.getMinutes(),
                's+': date.getSeconds()
            };
            for (var k in o) {
                if (new RegExp('(' + k + ')').test(fmt)) {
                    var str = o[k] + '';
                    fmt = fmt.replace(RegExp.$1, (RegExp.$1.length === 1) ? str : ('00' + str).substr(str.length));
                }
            }
            return fmt;
        };

        var app = new Vue({
            el: "#app",
            data: {
                options: [{ value: '不限', label: '不限' }, { value: '1', label: '1' }, { value: '2', label: '2' }, { value: '3', label: '3' },
                { value: '4', label: '4' }, { value: '5', label: '5' }, { value: '6', label: '6' },
                { value: '7', label: '7' }, { value: '8', label: '8' }, { value: '9', label: '9' },
                { value: '10', label: '10' }, { value: '11', label: '11' }, { value: '12', label: '12' },
                { value: '13', label: '13' }, { value: '14', label: '14' }, { value: '15', label: '15' },
                { value: '14+', label: '14+' }],
                value: '',
                name: "",
                data: "",
                people: "",
                pageNum: 10,
                pageSize: 100,
                searchVilla: [],
                imgs: [],
                // 评论数        
                comment: [],
                // 预订数
                villa_book: [],
                // 景观
                landscape: [],
                // 服务
                facility: [],
                // 地图
                title: [],//没有被分割的标题
                titles: [],//被分割的标题
                titleName: "",//最后标题名称
                //搜索
                searchAll: "",
                value1: '',
                villaPlace:"",

            },
            methods: {
                search() {
                    this.name = getQueryString("name");
                    this.data = getQueryString("data");
                    this.people = getQueryString("people");
                    this.villaPlace=getQueryString("villaPlace");

                    this.data = formatTime(this.data, "yy-MM-dd hh:mm:ss");

                    axios.get(localhost + "/VillaInfo/selectVillaInfo", {
                        params: {
                            pageSize: this.pageSize,
                            pageNum: this.pageNum,
                            name: this.name,//别墅名
                            villa_place: this.villaPlace,//地点
                            start_time: this.data,//开始日期
                            villa_rooms: this.people,//房间
                        }
                    }).then(function (res) {
                        app.searchVilla = res.data.data.list;
                        console.log(app.searchVilla);

                        for (let i = 0; i < app.searchVilla.length; i++) {
                            app.imgs = res.data.data.list[i].villa_introduce;
                            // console.log(app.imgs);

                            // console.log(app.searchVilla[i].villa_id);

                            // 别墅景观
                            axios.get(localhost + "/VillaInfo/findVillaInfoVitemById/" + app.searchVilla[i].villa_id, {})
                                .then(function (res) {
                                    app.landscape = res.data;
                                    console.log(app.landscape);
                                })

                            // 别墅服务
                            axios.get(localhost + "/VillaInfo/findVillaInfoServiceById/" + app.searchVilla[i].villa_id, {})
                                .then(function (res) {
                                    app.facility = res.data;
                                    console.log(app.facility);

                                    // 地图
                                    app.title = app.facility[0].villa_place
                                    console.log(app.title);
                                    app.titles = app.title.split('，');
                                    console.log(app.titles);

                                    var map = new BMap.Map("container");

                                    for (let i = 0; i < app.titles.length; i++) {
                                        app.titleName += app.titles[i];
                                    }

                                    console.log(app.titleName)

                                    map.centerAndZoom(app.titleName, 42);
                                    map.enableScrollWheelZoom();
                                    map.enableContinuousZoom();

                                    map.addControl(new BMap.NavigationControl());
                                    map.addControl(new BMap.OverviewMapControl());
                                    map.addControl(new BMap.OverviewMapControl({
                                        isOpen: true,
                                        anchor: BMAP_ANCHOR_BOTTOM_RIGHT
                                    }));

                                    var localSearch = new BMap.LocalSearch(map);
                                    localSearch.enableAutoViewport();

                                    window.onload = function () {
                                        // map.clearOverlays();
                                        var keyword = document.getElementById("text_").value;
                                        localSearch.setSearchCompleteCallback(function (sr) {
                                            var poi = sr.getPoi(0);
                                            document.getElementById("result_").value = poi.point.lng + "," + poi.point.lat;
                                            map.centerAndZoom(poi.point, 13);
                                            var marker = new BMap.Marker(new BMap.Point(poi.point.lng, poi.point.lat));
                                            map.addOverlay(marker);
                                            var content = document.getElementById("text_").value + "<br/><br/>经度：" + poi.point.lng + "<br/>纬度：" + poi.point.lat;
                                            var infoWindow = new BMap.InfoWindow("<p style='font-size:14px;'>" + content + "</p>");
                                            marker.addEventListener("click", function () {
                                                this.openInfoWindow(infoWindow);
                                            });
                                            marker.setAnimation(BMAP_ANIMATION_BOUNCE); //跳动的动画
                                        });
                                        localSearch.search(keyword);
                                    }

                                })
                        }

                    })

                    // 查询评论数
                    axios.get(localhost + "/VillaInfo/findVillaInfoComment", {
                        params: {
                            pageSize: 300,
                            pageNum: 1
                        }
                    })
                        .then(function (res) {
                            // app.comment = res.data.data.list[0].comments.length;
                            app.comment = res.data.data.list;
                            console.log(app.comment);
                        })

                },
                // 点击别墅，进入该别墅详情页
                villainfo(id) {
                    // 获取该别墅的id
                    window.location.href = "commodity.html?id=" + id;

                },

                // 查询别墅预订数
                villa_book() {
                    axios.get(localhost + "/VillaInfo/findVillaInfoComment", {
                        params: {
                            pageSize: 300,
                            pageNum: 1
                        }
                    })
                        .then(function (res) {
                            app.villa_book = res.data.data.list;
                            // console.log(app.villa_book[0].reserves[0].reserve_nub);
                        })
                },
                // 搜索别墅功能
                go_search() {
                    axios.get(localhost + "/VillaInfo/selectVillaInfo", {
                        // params: {
                        //   pageSize: this.pageSize,
                        //   pageNum: this.pageNum,
                        //   villa_place: this.place,//地点
                        //   start_time: this.value1,//开始日期
                        //   villa_rooms: this.value/2,//房间
                        // }
                    }).then(function (res) {
                        app.searchAll = res.data.data.list;
                        // console.log(app.place);
                        window.location.href = "searchresults.html?name=" + app.name + "&data=" + app.value1 + "&people=" + app.value;
                    })
                },
            },
            created: function () {
                this.search();
                this.$options.methods.villa_book();
            }
        })
    </script>

    <script type="text/javascript">
        $(function () {
            $("#price").click(function () {
                $("#price-box").slideToggle("normal", function () {

                });
            });
        });
        $(function () {
            $("#bedroom").click(function () {
                $("#bedroom-box").slideToggle("normal", function () {

                });
            });
        });
        $(function () {
            $("#area").click(function () {
                $("#area-box").slideToggle("normal", function () {

                });
            });
        });
        $(function () {
            $("#theme").click(function () {
                $("#theme-box").slideToggle("normal", function () {

                });
            });
        });

        function menuFixed(id) {
            var obj = document.getElementById("flightInfoBox");
            var _getHeight = obj.offsetTop;

            window.onscroll = function () {
                changePos(id, _getHeight);
            }
        }
        function changePos(id, height) {
            var obj = document.getElementById("flightInfoBox");
            var scrollTop = document.documentElement.scrollTop || document.body.scrollTop;
            if (scrollTop < height) {
                obj.style.position = 'relative';
                obj.style.top = '0';
            } else {
                obj.style.position = 'fixed';
                obj.style.top = '0px';
            }
        }
    </script>
    <script type="text/javascript">
        window.onload = function () {
            menuFixed('nav_keleyi_com');
        }
    </script>

</body>

<script type="text/javascript" src="http://api.map.baidu.com/api?v=1.3"></script>
<script type="text/javascript"
    src="http://api.map.baidu.com/api?ak=PlhFWpA02aoURjAOpnWcRGqw7AI8EEyO&v=2.0&services=false"></script>
<script src="./js/searchresults.js"></script>

</html>